<template>
	<div class="wrapper">
		<!-- header部分 -->
		<header>
			在线支付
		</header>

		<!-- 支付成功部分 -->
		<div class="paysuc-img">
			<img src="../assets/paysuc.png" />
			<li>支付成功</li>
		</div>

		<div class="confirm payment-button" @click="confirm">
			<button>确定</button>
		</div>

		<Footer />
	</div>
</template>

<script>
import { useRouter } from 'vue-router';
import Footer from '../components/Footer.vue';

export default {
	name: 'PaySuccessfully',
	components: {
		Footer,
	},
	setup() {
		const router = useRouter();

		const confirm = () => {
			router.push({ path: '/OrderList' });
		};

		return {
			confirm,
		};
	},
};
</script>

<style scoped>
	/****************** 总容器 ******************/
	.wrapper {
		width: 100%;
		height: 100%;
	}

	/****************** header部分 ******************/
	.wrapper header {
		width: 100%;
		height: 12vw;
		background-color: #0097FF;
		color: #fff;
		font-size: 4.8vw;

		position: fixed;
		left: 0;
		top: 0;
		z-index: 1000;

		display: flex;
		justify-content: center;
		align-items: center;
	}

	/****************** 支付成功部分 ******************/
	.wrapper .paysuc-img{
		width: 100%;
		height: 80vw;
		font-size: 8vw;
		flex-direction: column;

		position: fixed;
		left: 0;
		top: 40vw;
		z-index: 1000;

		display: flex;
		justify-content: center;
		align-items: center;
	}

	.wrapper .paysuc-img img{
		width: 60vw;
		height: 60vw;
	}

	.wrapper .confirm{
		width: 100%;
		height: 10vw;
		font-size: 5.8vw;

		position: fixed;
		left: 0;
		bottom: 20vw;
		z-index: 1000;

		display: flex;
		justify-content: center;
		align-items: center;
	}

	.wrapper .payment-button {
		width: 100%;
		box-sizing: border-box;
		padding: 4vw;
	}

	.wrapper .payment-button button {
		width: 100%;
		height: 10vw;
		border: none;
		/*去掉外轮廓线*/
		outline: none;
		border-radius: 4px;
		background-color: #38CA73;
		color: #fff;
	}



</style>
